#include <cstdio>
#include <iostream>

using namespace std;

int main()
{
    int n;
    cin>>n;
    for(int i=1,pos=0;i<=n;i++)
    {
        cout<<pos+1<<" ";
        pos=pos+(i&1?(n-i):-(n-i));
    }
}
